<!--
  @author duanzuocai
  @since 2018/11/16 11:14
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>员工角色列表</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        组织关系>
        <a lay-href="/mc/staff/list.action">员工管理</a>
        >&nbsp;&nbsp;员工列表
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/mc/role/staff/list.action">
            <div class="layui-form" th:include="mc/role/staff/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <table class="layui-hide" id="zmn-role-staff-table" lay-filter="zmn-role-staff-table"></table>
            <script type="text/html" id="zmn-role-staff-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${vo.showLimit == 1}">
                        <zmn th:if="${#authPermit.checkPermit('/mc/role/staff/add.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group" th:if="${vo.showLimit == 2}">
                        <zmn th:if="${#authPermit.checkPermit('/mc/role/staff/del.action')}">
                            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del">删除</button>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/mc/role/staff/list.action')}]],
        hasAdd: [[${#authPermit.checkPermit('/mc/role/staff/add.action')}]],
        hasDel: [[${#authPermit.checkPermit('/mc/role/staff/add.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]],
        staffId: [[${staff.staffId}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        art_role_staff_list: "mc/role/staff/zmn.art.role.staff.list",
    }).use(['index', 'art_role_staff_list']);

</script>
</body>
</html>